package com.badshun.stage;

import com.badlogic.gdx.scenes.scene2d.*;
import com.badshun.map.*;
import com.badlogic.gdx.graphics.*;
import com.badshun.box2d.*;
import com.badshun.player.*;
import com.badlogic.gdx.math.*;
import com.badlogic.gdx.*;

public class MainCityRoom1Stage extends EnvironmentStage {
	private OrthographicCamera camera;

	public GameMap map;
	
	public static final String TAG = "MainCityRoom1Stage";
	
	public boolean isActive;
	
	public NPCPlayersManager npm;
	
	public Enemy[] enemys;

	public MainCityRoom1Stage(MainPlayer player,NPCPlayersManager npm,OrthographicCamera camera,Box2DWorld world) {
		super(player,camera,world);
		
		this.npm = npm;
		this.camera = camera;
		
		enemys = new Enemy[1];
		enemys[0] = new Enemy("小兵1",new Vector2(400,400),new Texture(Gdx.files.internal("player/enemy1.jpg")),world,player,camera);

		npm.createNPCPlayers(TAG,player,world,"data/mainCityRoom1.bdl",camera);

		map = new GameMap("map/mainCityRoom1.tmx",TAG,world,camera);
	}

	@Override
	public void draw() {
		map.render();
		
		npm.npcs.render();
	}
}
